/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="BANCOS")
public class BancosProteu implements Serializable{

    @Id
    @Column(name="BAN_ST_CODIGO")
    private String banStCodigo;
    @Column(name="BAN_ST_DESCRICAO")
    private String banStDescricao;

    public String getBanStCodigo() {
        return banStCodigo;
    }

    public void setBanStCodigo(String banStCodigo) {
        this.banStCodigo = banStCodigo;
    }

    public String getBanStDescricao() {
        return banStDescricao;
    }

    public void setBanStDescricao(String banStDescricao) {
        this.banStDescricao = banStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final BancosProteu other = (BancosProteu) obj;
        if ((this.banStCodigo == null) ? (other.banStCodigo != null) : !this.banStCodigo.equals(other.banStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + (this.banStCodigo != null ? this.banStCodigo.hashCode() : 0);
        return hash;
    }



}
